import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
    mode: 'history',
    routes: [
        {
            path: '/',
            name: 'index',
            component: (resolve) => require(['@/pages/index/index/main.vue'], resolve),
            meta: {title: '首页'},
        },
        {
            path: '/pages/cate/list',
            name: 'cate_list',
            component: (resolve) => require(['@/pages/cate/list/main.vue'], resolve),
             meta: {title: '商品分类'},
        },
        {
            path: '/pages/goods/list',
            name: 'goods_lists',
            component: (resolve) => require(['@/pages/goods/list/main.vue'], resolve),
            meta: {title: '商品列表'},
        },
        {
            path: '/pages/goods/detail',
            name: 'goods_detail',
            component: (resolve) => require(['@/pages/goods/detail/main.vue'], resolve),
            meta: {title: '商品详情'},
        },
        {
            path: '/pages/order/make',
            name: 'order_make',
            component: (resolve) => require(['@/pages/order/make/main.vue'], resolve),
            meta: {title: '确认订单'},
        },
        {
            path: '/pages/order/list',
            name: 'order_list',
            component: (resolve) => require(['@/pages/order/list/main.vue'], resolve),
            meta: {title: '我的订单'},
        },
        {
            path: '/pages/order/explist',
            name: 'order_explist',
            component: (resolve) => require(['@/pages/order/explist/main.vue'], resolve),
            meta: {title: '查看物流'},
        },
        {
            path: '/pages/setting/index',
            name: 'setting_index',
            component: (resolve) => require(['@/pages/setting/index/main.vue'], resolve),
            meta: {title: '个人中心'},
        },
        {
            path: '/pages/group/index',
            name: 'group_index',
            component: (resolve) => require(['@/pages/group/index/main.vue'], resolve),
            meta: {title: '我的微群'},
        },
        {
            path: '/pages/group/join',
            name: 'group_join',
            component: (resolve) => require(['@/pages/group/join/main.vue'], resolve),
            meta: {title: '加入微群'},
        },
        {
            path:'/pages/group/extension',
            name: 'group_extension',
            component: (resolve) => require(['@/pages/group/extension/main.vue'], resolve),
            meta: {title: '微群推广'},
        },
        {
            path:'/pages/group/member',
            name: 'group_member',
            component: (resolve) => require(['@/pages/group/member/main.vue'], resolve),
            meta: {title: '我的成员'},
        },
        {
            path:'/pages/group/nextgroup',
            name: 'group_nextgroup',
            component: (resolve) => require(['@/pages/group/nextgroup/main.vue'], resolve),
            meta: {title: '我的下级群主'},
        },
        {
            path:'/pages/group/subgroup',
            name: 'group_subgroup',
            component: (resolve) => require(['@/pages/group/subgroup/main.vue'], resolve),
            meta: {title: '他的二级群主'},
        },
        {
            path:'/pages/group/edit',
            name: 'group_edit',
            component: (resolve) => require(['@/pages/group/edit/main.vue'], resolve),
            meta: {title: '编辑群资料'},
        },
        {
            path:'/pages/dev/setcookie',
            name: 'dev_setcookie',
            component: (resolve) => require(['@/pages/dev/setcookie.vue'], resolve),
            meta: {title: '设置COOKIE'},
        },
        {
            path:'/pages/dev/getcookie',
            name: 'dev_getcookie',
            component: (resolve) => require(['@/pages/dev/getcookie.vue'], resolve),
            meta: {title: '获取COOKIE'},
        }
        ,  {
            path:'/pages/group_go/release',
            name: 'group_go_release',
            component: (resolve) => require(['@/pages/group_go/release/main.vue'], resolve),
            meta: {title: '发布团购'},
        }
        ,  {
            path:'/pages/group_go/list',
            name: 'group_go_list',
            component: (resolve) => require(['@/pages/group_go/list/main.vue'], resolve),
            meta: {title: '团购列表'},
        }
        ,{
            path:'/pages/group_task/list',
            name: 'group_task_list',
            component: (resolve) => require(['@/pages/group_task/list/main.vue'], resolve),
            meta: {title: '团购任务'},
        }
        ,{
            path:'/pages/home/index',
            name: 'home_index',
            component: (resolve) => require(['@/pages/home/index/main.vue'], resolve),
            meta: {title: '群家园'},
        }
        ,{
            path:'/pages/go/detail',
            name: 'go_detail',
            component: (resolve) => require(['@/pages/go/detail/main.vue'], resolve),
            meta: {title: '团购详情'},
        }
        ,{
            path:'/pages/go/mylist',
            name: 'go_mylist',
            component: (resolve) => require(['@/pages/go/mylist/main.vue'], resolve),
            meta: {title: '我的团购'},
        }
        ,{
            path:'/pages/setting/detail',
            name: 'setting_detail',
            component: (resolve) => require(['@/pages/setting/detail/main.vue'], resolve),
            meta: {title: '联系客服'},
        }
        ,{
            path:'/pages/setting/feedback',
            name: 'setting_feedback',
            component: (resolve) => require(['@/pages/setting/feedback/main.vue'], resolve),
            meta: {title: '意见反馈'},
        }


    ]
})
